package com.central.modules.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.central.modules.sys.entity.SysUserEntity;
import com.central.modules.sys.model.AddSysUserRequest;
import com.central.modules.sys.model.SysUserQueryBean;

import java.util.List;


/**
 * 系统用户
 */
public interface SysUserService extends IService<SysUserEntity> {

    //分页查询用户
    IPage<SysUserEntity> pageSearch(SysUserQueryBean queryBean);

    //查询条件所有的
    List<SysUserEntity> list(SysUserQueryBean queryBean);

    SysUserEntity getDetailById(Long id);

    SysUserEntity getByUsername(String username);

    void add(AddSysUserRequest dto);

    void updateById(Long id,AddSysUserRequest dto);

    void delete(Long[] ids);

    //修改密码
    void updatePassword(Long id, String newPassword);
    void updateStatus(Long id, Integer status);



}
